﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace DukeNUS.FacilitiesPlanning.FPSystem.Models.Account
{
    public class AccountPasswordDetail
    {

        public AccountPasswordDetail()
        {
            UserID = 0; CurrentPassword = "";
            NewPassword = ""; ValidatingPassword = "";
        }

        [Required]
        public int UserID { get; set; }

        [Required(ErrorMessage = "Current password is required.")]
        public string CurrentPassword { get; set; }

        [Required(ErrorMessage = "New password is required."),
        MaxLength(50, ErrorMessage = "New password should not exceed 50 characters."),
        MinLength(7, ErrorMessage = "New password must be at least 12 characters long.")]
        public string NewPassword { get; set; }

        [Required(ErrorMessage = "Validating password is required."),
        MaxLength(50, ErrorMessage = "Validating password should not exceed 50 characters."),
        MinLength(7, ErrorMessage = "Validating password must be at least 12 characters long.")]
        public string ValidatingPassword { get; set; }
        
    }
}